const fs = require('fs')
const NodeOutputFileSystem = require('./NodeOutputFileSystem.js')
const CachedInputFileSystem = require('./CachedInputFileSystem.js')
const NodeJsInputFileSystem = require('./NodeJsInputFileSystem.js')
class NodeEnvironmentPlugin {
  constructor(options) {
    this.options = options || {}
  }

  apply(compiler) {
    // compiler.inputFileSystem = new CachedInputFileSystem(
    //   new NodeJsInputFileSystem(),
    //   60000
    // )
    // compiler.outputFileSystem = new NodeOutputFileSystem()
    compiler.inputFileSystem = fs
    compiler.outputFileSystem = fs
  }
}

module.exports = NodeEnvironmentPlugin
